import 'package:flutter/material.dart';
import 'package:flutter_hx/network/HttpGo.dart';
import 'package:get/get.dart';

class AccountLogic extends GetxController with GetSingleTickerProviderStateMixin{
  late final TabController tabController;
  final account=RxMap<String,dynamic>({});


  Future getAccountInfo(dynamic type)async{
    final res=await HttpGo.instance.get("/account/info",params: {"accountType":type});
    res.ifSuccess((data) {
      account.value=data;
    });
  }
  @override
  void onInit() {
    super.onInit();
    tabController=TabController(length: 2, vsync: this);
  }
}
